<template>
    <div>
        <BatchImportOne v-if="this.courseState.current === 0"></BatchImportOne>
        <BatchImportTwo v-else></BatchImportTwo>
    </div>
</template>

<script>
    import BatchImportOne from "@/components/content/course/BatchImportOne";
    import BatchImportTwo from "@/components/content/course/BatchImportTwo";
    import { mapState } from "vuex";

    export default {
        name: "batchImport",
        components: {
            BatchImportOne,
            BatchImportTwo
        },
        computed: {
            ...mapState({ // 这个是提取store中access文件夹目录下的数据
                'courseState': 'course'
            })
        }
    }
</script>

<style scoped>

</style>
